package com.sen.gulimall.ware.config;

/**
 * @author Kisen
 * @email lqs0911@qq.com
 * @date 2022/12/29 12:26
 * @detail Seata配置代理数据源DataSourceProxy
 */
//@EnableConfigurationProperties(DataSourceProperties.class)
//@Configuration
//public class SeataConfig {
//
//    @Bean
//    public DataSource dataSource(DataSourceProperties properties) {
//        //(T) properties.initializeDataSourceBuilder().type(type).build();
//        HikariDataSource dataSource = properties.initializeDataSourceBuilder().type(HikariDataSource.class).build();
//        if (StringUtils.hasText(properties.getName())) {
//            dataSource.setPoolName(properties.getName());
//        }
//        return new DataSourceProxy(dataSource);
//    }
//
//}
